package com.zsrd.system.domain.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Data
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class SysDictDto {

  /**
   * 导出时忽略该字段 @ExcelIgnore
   * */
  @ExcelIgnore
  private long id;

  @ExcelProperty("类型标识")
  private String dictType;

  @ExcelProperty("类型名称")
  private String typeName;

  @ExcelProperty("字典编码")
  private int dictCode;

  @ExcelProperty("字典名称")
  private String dictName;

  @ExcelProperty("字典描述")
  private String dictDesc;

  @ExcelProperty("排序")
  private int sort;

  @ExcelProperty("合计")
  private int sum = sort+dictCode;

  /**
   * 设置表格列的宽度为20； @ColumnWidth(20)
   * */


}
